<?php

$db =& JFactory::getDBO();
$query = 'DROP TABLE IF EXISTS #__multisite';
$db->query($query);
$path=JPATH_BASE;
$path=str_replace('administrator', 'config', $path);
JFolder::delete($path);
$path=str_replace('config', 'includes', $path);
JFile::move('defines.php.ORIG', 'defines.php', $path);
JFile::move('framework.php.ORIG', 'framework.php', $path);
$path2=JPATH_BASE;
$path2=$path2."/includes";
JFile::move('framework.php.ORIG', 'framework.php', $path2);
JFile::move('defines.php.ORIG', 'defines.php', $path2);